public class array {
	public static void main(String[] args) {
		String[] arr = { "Mike","Jenny","Johnson","Amy","Mary","Cathrine","Armstrong","Dony" };
		for (int i = 0; i < arr.length; i++) {
			System.out.print(arr[i] + ",");
			if ((i+1)%3 == 0) {
				System.out.println();
			}
		}
	}
}
